package main;

import Uti.ScannerUti;
import work1.Works1;
import work2.Works2;
import work3.Works3;
import work4.Works4;
import work5.Works5;

import java.util.Scanner;

public class Menu {

    public static void menu() {
        while (true) {
            System.out.println("请选择作业号：1——作业1; 0——退出");
            System.out.println("请选择作业号：2——作业2; 0——退出");
            System.out.println("请选择作业号：3——作业3; 0——退出");
            System.out.println("请选择作业号：4——作业4; 0——退出");
            System.out.println("请选择作业号：5——作业5; 0——退出");

            Scanner scanner = new Scanner(System.in);
            int k = ScannerUti.getInt();

            if (k == 1) Works1.work();
            else if (k == 2) Works2.Work();
            else if (k == 3) Works3.Work();
            else if (k == 4) Works4.Work();
            else if (k == 5) Works5.Work();

            else if (k == 0) break;
        }


    }


}
